package com.rykj.energy.basic.rest;

import com.rykj.butler.sdk.domain.User;
import com.rykj.butler.sdk.util.SDKParserUtil;

/**
 * @author GanLu
 * @date 2020-04-16 15:48
 */
public class BaseController {

    protected User getLoginUser(){
        User u = SDKParserUtil.getUserInfo();
        return u;
    }

    protected Integer getLoginUserId(){
        User u = SDKParserUtil.getUserInfo();
        return u.getId();
    }
    protected Integer getLoginUserOrgId(){
        User u = SDKParserUtil.getUserInfo();
        return u.getOrgId();
    }
}
